<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<head>
<meta name="menu" content="assetMenu" />
<meta name="nav" content="0" />
<meta name="acc" content="_detect" />
<title>水泥,煤炭灰</title>
<script>
$(document).ready(function() {
	
	$("#reportStartdate").addClass("Wate").bind("click", function() {
		WdatePicker({
			skin : 'whyGreen',
			minDate : '1900-10-01',
			maxDate : '%y-%M-%d',
			dateFmt : 'yyyy-MM-dd'
		});
	});
	$("#reportEnddate").addClass("Wate").bind("click", function() {
		WdatePicker({
			skin : 'whyGreen',
			minDate : '1900-10-01',
			dateFmt : 'yyyy-MM-dd'
		});
	});
	});
	function viewTria(id){
		$.window.prepare({
			   dock: 'left'       // change the dock direction: 'left', 'right', 'top', 'bottom'
			});
		sampleWnd = $.window({
			title: "水泥,煤炭灰",
			showFooter: false,
			maximizable:true,
			bookmarkable:false,
			showModal: true,
			resizable:false,
			width:720,
			height:400,
			showRoundCorner: true,
			createRandomOffset: {x:-1, y:-1},
			modalOpacity: 0.5,
			minimizable:false,
			url: appConfig.contPath+"/receive/wt03/trialwt03!view.action?decorator=open&confirm=true&id="+id
		});
		sampleWnd.maximize();
	}

function close(){
	 $.window.closeAll(); 
}
	</script>
</head>
<body>
<div id="heading" class="detect"><h6>钢筋/钢铰线</h6></div>
<form action="${ctx}/measure/wt03/order03!all.action" method="get" id="mainForm"
	class='yform'>
	<input type="hidden" name="type" value="${param.type }">
<div id="filter">
<ul>
<li>委托编号:<input type="text" value="${param['filter_LIKES_entrustNum']}" name="filter_LIKES_entrustNum">
		</li>

	<li>送检时间:<input type="text" id="reportStartdate"
		name="filter_EQD_entrust.checkdate" value="${param['filter_EQD_entrust.checkdate']}" />
		</li>
		<li>检验类别:<pt:code category="5001" hasEmpty="true" default="${param['filter_EQS_entrust.checktype']}" name="filter_EQS_entrust.checktype"></pt:code>
		</li>
</ul>
<div class="type-button">
<input type="button" onclick="search();"
	class="search" value="查询" /></div>
</div>
<div id="content">
<table>
	<tr>
		<th>委托编号</th>
		<th>报告编号</th>
		<th>检验类别</th>
		<th>送检日期</th>
		<th>操作</th>
		<c:forEach items="${page.result}" var="order">
			<tr>
				<td>${order.entrust.entrustNum}</td>
				<td>${order.reportcode}</td>
				<td><pt:code category="5001" code="${order.entrust.checktype}"></pt:code></td>
				<td><fmt:formatDate value="${order.entrust.checkdate}" pattern="yyyy-MM-dd"/></td>
				<td>
				<a href="${ctx }/receive/wt03/trialwt03!input.action?id=${order.entrust.id}">修改</a>	
				<a href="javascript:viewTria('${order.entrust.id}');">查看</a>				
				</td>
			</tr>
		</c:forEach>
</table>
</div>
<jsp:include page="/common/page.jsp" flush="true" />
</form>
</body>
